home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / kgotoxy.c < prev    next >
Text File  |  1986-05-07  |  413b  |  23 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5.  
  6.  
  7. void GotoXY(x, y)
  8. int    x, y;
  9. {
  10.     if (GrafModeGlb) {
  11.         XTextGlb = x;
  12.         YTextGlb = y;
  13.     }
  14.     else {                                /* bios calls to move cursor        */
  15.         struct regval    reg;
  16.         reg.ax = 0x0200;
  17.         reg.bx = 0;
  18.         reg.dx = 256 * x + y;
  19.         sysint(0x10, ®, ®);
  20.     }
  21. }
  22.  
  23.